<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
<head>
<title>Insert title here</title>
</head>
<body>
<ui:composition template="layout/template.xhtml">

	<ui:define name="searchWidget">
		<ui:include src="includes/search/searchWidget.xhtml" />
	</ui:define>

	<ui:define name="menu">
		<ui:include src="/includes/index/menu.xhtml" />
	</ui:define>

	<ui:define name="tree">
		<ui:include src="/includes/index/tree.xhtml" />
	</ui:define>

	<ui:define name="body">

		<h:panelGroup id="mainArea" layout="block">

			<h:panelGroup styleClass="content_box" layout="block">
				<ui:include src="#{model.mainArea.template}" />
			</h:panelGroup>
			<ui:include src="includes/misc/errorPanel.xhtml" />
		</h:panelGroup>

		<a4j:jsFunction name="sho" reRender="helpPanel"
			oncomplete="#{rich:component('helpPanel')}.show();">
			<a4j:actionparam name="param1" assignTo="#{help.page}" />
		</a4j:jsFunction>
	</ui:define>
</ui:composition>
</body>
</html>